package 牛客网_N.查找_递归_排序_贪心.百钱买百鸡;

import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		getResult(n);
	}

	private static void getResult(int n) {
		double x, y, z;
		for(x = 0; x <= 20; x++){
			y = 25-x*7/4;
			z = 100 - x - y;
			if(y == (int)(y) && y >= 0 && z >= 0) 
				System.out.println((int)x+" "+(int)y+" "+(int)z);
		}
	}
}
